package com.zshy.base.monitor.domain.contract.command;

import com.dingtalk.api.request.OapiRobotSendRequest;
import com.zshy.base.monitor.domain.contract.enums.BtnOrientationEnum;
import com.zshy.base.monitor.domain.contract.enums.HideAvatarEnum;
import lombok.*;
import lombok.experimental.SuperBuilder;

import java.util.List;

/**
 * 独立跳转ActionCard类型 消息发送
 *
 * @author zhouhengzhe
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
public class SendMessageByActionCardMultiCommand extends SendMessageBaseCommand {
    /**
     * 消息内容。如果太长只会部分展示
     */
    private String title;
    /**
     * markdown消息内容
     */
    private String markdownText;

    /**
     * 按钮排列方式
     */
    private List<OapiRobotSendRequest.Btns> btns;

    /**
     * false-按钮竖直排列，true-按钮横向排列
     */
    @Builder.Default
    private BtnOrientationEnum btnOrientationEnum = BtnOrientationEnum.BTN_ARRANGED_VERTICALLY;
    /**
     * false-正常发消息者头像，true-隐藏发消息者头像
     */
    private HideAvatarEnum hideAvatarEnum = HideAvatarEnum.SHOW_AVATAR;
}
